const p = new Promise((resolve,reject)=>{
    resolve('用户数据');
})

async function fn(){
    try{
        const result = await p;
        console.log(result);
    }catch(e){
        console.log(e);
        
    }
    
}
fn();


new Promise(function(resolve,reject){

}).then(function(res){

}).catch(function(err){
    
})